import axios from 'axios'

const baseURL = 'http://localhost:8082'
/**
 * 上传 
 * @param {file} data 
 */
export function upload (data = {}){
	return axios({
		url:`${baseURL}/register/upload`,
		method:'post',
		headers:{'Content-Type': 'multipart/form-data'},
		data
	})
}
/**
 * 重新上传
 * @param {file} data 
 */
export function updataFlie (data = {}){
	return axios({
		url:`${baseURL}/updataflie`,
		method:'post',
		headers:{'Content-Type': 'multipart/form-data'},
		data
	})
}

export default {
	upload,
	updataFlie
}
